home *** CD-ROM | disk | FTP | other *** search
/ Pascal Super Library / Pascal Super Library (CW International)(1997).bin / STRINGS / PACKAGE6 / LESS.DOC < prev    next >
Text File  |  1990-07-25  |  1KB  |  42 lines

  1. ----------------------------------------------------------------------------
  2. FirstLessThanToSecond
  3. ----------------------------------------------------------------------------
  4.  
  5.  
  6. declaration:    function FirstLessThanSecond (     String1,
  7.                                                    String2:
  8.                                                      TypeString):
  9.                                                        boolean;
  10.  
  11. purpose:        Returns a boolean; if String1 is less then String2 then
  12.                 boolean is set to true, if they aren't then it is set to
  13.                 false.
  14.  
  15. precondition:   String1 and String2 - both are two Strings that have been
  16.                 initialized and have a value of TypeString.
  17.  
  18. postcondition:  String1 and String2 do not change.  The function is either
  19.                 set to true or false.
  20.  
  21. special cases:  none
  22.  
  23. example:        var
  24.                   String1,
  25.                   String2:
  26.                     TypeString;
  27.  
  28.                 begin
  29.                   .
  30.                   .
  31.                   .
  32.                   GetString1 (String1);
  33.                   GetString2 (String2);
  34.                   if FirstLessThanSecond (String1, String2) then
  35.                     ExecuteSort;
  36.                   .
  37.                   .
  38.                   .
  39.                 end
  40.  
  41. ----------------------------------------------------------------------------
  42.